<%@page import="model.transfermodel.OrderPackage"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>

        <meta charset="utf-8">
        <title>发送指令</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- CSS -->
        <link rel="stylesheet" href="assets/css/reset.css">
        <link rel="stylesheet" href="assets/css/supersized.css">
        <link rel="stylesheet" href="assets/css/style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="assets/js/html5.js"></script>
        <![endif]-->

    </head>
	

    <body>

		<%
			String imei = "目标指令机imei";
        	String optcode = "请输入操作码";
        	String para1 = "请输入参数1";
        	String para2 = "请输入参数2";
        	String para3 = "请输入参数3";
        	String title = "指令发射台";
			OrderPackage pack = (OrderPackage)request.getSession().getAttribute("order_pack");
        	if(pack != null){
        		imei = pack.imei;
        		optcode = pack.optcode;
        		para1 = pack.para1;
        		para2 = pack.para2;
        		para3 = pack.para3;
        		title="上一条指令已经发送";
        		request.getSession().removeAttribute("order_pack");
        	}
        	
		%>

        <div class="page-container">
        	<h1><%=title%></h1>
            <form action="Order" method="post">
            	<input type="text" name="imei" class="username" value = <%=imei %> >
                <input type="text" name="optcode" class="username" placeholder="请输入操作码" >
                <input type="text" name="para1" class="username" value = <%=para1 %>>
                <input type="text" name="para2" class="username" value = <%=para2 %>>
                <input type="text" name="para3" class="username" value = <%=para3 %>>
                <button type="submit" class="submit_button">提交</button>
                <div class="error"><span>+</span></div>
            </form>
            
        </div>
		
        <!-- Javascript -->
        <script src="assets/js/jquery-1.8.2.min.js" ></script>
        <script src="assets/js/supersized.3.2.7.min.js" ></script>
        <script src="assets/js/supersized-order.js" ></script>
        <script src="assets/js/scripts.js" ></script>

    </body>

</div>
</html>